import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class WinNumber {
    public static int[] createWinNumberRed(){
        Set<Integer> set=new HashSet<>();
        Random random=new Random();
        while (true){
            int n= random.nextInt(33)+1;
            set.add(n);
            if (set.size()>=6){
                break;
            }
        }
        Object[] objs=set.toArray();
        int[] nums=new int[objs.length];
        for (int i=0;i<= objs.length-1;i++){
            nums[i]=(int)objs[i];
        }
        SelectNumber.sortArray(nums);
        return nums;
    }
    public static int createWinNumberBlue(){
        Random random=new Random();
        int n=random.nextInt(16)+1;
        return n;
    }
}
